package adaptive.ime;

import android.content.Context;
import android.inputmethodservice.Keyboard;

public class MyKeyboard extends Keyboard {

	public MyKeyboard(Context context, int xmlLayoutResId) {
		super(context, xmlLayoutResId);
	}
	
	public void setKeyHeight(int height) {
		super.setKeyHeight(height);
	}

	public int getHeight() {
		return 	getKeyHeight() * 4;
	}
	
	public void setNewKeyHeight(float h) {

		int height = 0;
		for(Keyboard.Key key : this.getKeys()) {
		   key.height *= h;
		   key.y *= h;
		   height = key.height;
		}
		this.setKeyHeight(height);
	}
}
